<template>
  <Demo msg="你好" school="尚硅谷" @hello="showHello" >
    <template v-slot:qwe>
      <span>这是插槽内容</span>
    </template>
    <template v-slot:asd>
      <span>这是插槽内容</span>
    </template>
  </Demo>
</template>

<script>
// import Vue from 'vue'
import Demo from './components/Demo.vue'

export default {
  name: 'App',
  components: {
    Demo
  },
  setup() {
    function showHello(value) {
      alert(`触发了hello事件，收到的参数是${value}`)
    }

    return {
      showHello,
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
